@model List<ToDoListWeb.Models.Matter>
@{
    Layout = null;
}

<ul>
    @if (Model != null)
    {
        foreach (var item in Model)
        {
            <li class="a-inventory-name">
                @if (item.IsFinished)
                    {
                    <a id="is-over+@item.MatterId" onclick="changeIsFinished(@item.MatterId)"><img id="is-over-img" src="~/images/已完成.png"></a>
                }
                else
                {
                    <a id="is-over+@item.MatterId" onclick="changeIsFinished(@item.MatterId)"><img id="is-over-img" src="~/images/未完成1.png"></a>

                }
                <a id="all-matter+@item.MatterId" onclick="chooseMatter(@item.MatterId)">
                    @if (item.IsPastdue)
                    {
                        <span title="已过期" style="color:red;"><s>@item.MatterContent</s></span>
                    }
                    else
                    {
                        <span>@item.MatterContent</span>
                    }
                </a>
                <a id="a-delete+@item.MatterId" onclick="deleteMatter(@item.MatterId)"><img src="~/images/删除.png" id="delete-img"></a>
            </li>
        }
    }
</ul>
